package com.ruoyi.web.controller.vantController.teamController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.construction.ProjectInstruction;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.BrandInfo;
import com.ruoyi.system.service.vantservice.teamservice.ApiProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.util.List;
@Api(value = "施工案例说明接口", tags = {"施工案例说明接口"})
@RestController
@RequestMapping("/api/team/project")
@CrossOrigin
public class ApiProjectContrller extends BaseController {

    @Autowired
    private ApiProjectService apiProjectService;

    @ApiResponses({@ApiResponse(code = 200, message = "正常", response = BrandInfo.class)})
    @ApiOperation(value = "施工案例说明ID查询")
    @GetMapping(value ="/getProjectId/{caseId}")
    public List<ProjectInstruction> getProjectId(@PathVariable("caseId") Integer caseId){
        return apiProjectService.getProjectId(caseId);
    }



}
